package cn.bugstack.mcp.server.niuke.infrastructure.gateway;


import cn.bugstack.mcp.server.niuke.infrastructure.gateway.dto.ArticleRequestDTO;
import cn.bugstack.mcp.server.niuke.infrastructure.gateway.dto.ArticleResponseDTO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface NiuKeService {

    @Headers({
            "accept:application/json, text/plain, */*",
            "accept-language:zh-CN,zh;q=0.9",
            "content-type:application/json",
            "origin:https://www.nowcoder.com",
            "priority:u=1, i",
            "referer:https://www.nowcoder.com/",
            "sec-ch-ua:\"Google Chrome\";v=\"135\", \"Not-A.Brand\";v=\"8\", \"Chromium\";v=\"135\"",
            "sec-ch-ua-mobile:?0",
            "sec-ch-ua-platform:\"Windows\"",
            "sec-fetch-dest:empty",
            "sec-fetch-mode:cors",
            "sec-fetch-site:same-site",
            "user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
            "x-requested-with:XMLHttpRequest",
    })
    @POST("/api/sparta/moment/create")
    Call<ArticleResponseDTO> createArticle(@Body ArticleRequestDTO requestDTO, @Header("Cookie") String cookieValue);
}
